|
|
|
|
|
|
|
Figure 18.2
In a much better design than the
form in Figure 18.1, frames and label
controls are used to organize the form. |
|
|
|
|
|
|
|
|
|
The Tabbed Dialog control is similar to the TabStrip; the major difference is that it can act as a container for other controls.  |
|
|
|
|
|
|
|
|
|
|
See "Using the TabStrip Control," p. 261 |
|
|
|
|
|
|
|
|
Figure 18.3
Use the TabStrip control, and
keep your form a reasonable size. |
|
|
|
|
|
|
|
|
To keep from going overboard with too many controls on a form, you should always keep the form's purpose in mind. Consider the form in Figure 18.3. Everything on the form could fall under the general realm of "program options," but each separate category of options is in a different section of the TabStrip control. If you do find that you need a separate form, make sure logic dictates which controls you put on it. |
|
|
|
|
|
|
|
|
In addition, make sure to set the appropriate form properties so that the form acts according to its intended purpose. For example, a modal form probably should not have a sizeable border or show up in the Windows taskbar. |
|
|
|
|
|
|
|
|
See "Form Properties Revisited," p. 52 |
|
|
|
|
|
|
|
|
Pay Special Attention to Data Entry Forms |
|
|
|
|
|
|
|
|
Data entry forms are a special breed. They should allow users to work at their own pace, not the programmer's. Common sense is the main rule here: If users have to enter 10,000 records into your database, they don't want to answer a yes/no confirmation dialog for each record. |
|
|
|
|
|
|
|
|
The preceding section emphasized separating and hiding certain controls. However, a data entry form should maximize the use of form space because showing and hiding forms slows down the process. Speed should definitely be one of your main goals when designing a data entry form. To make the data entry process faster, follow these guidelines: |
|
|
|
|
|